package com.ktwlsoft.fundmanage.fundFlow.processHandler.FundInServiceTask;

import com.ktwlsoft.fundmanage.domain.entity.FundInRecord;
import com.ktwlsoft.fundmanage.fundFlow.processHandler.BaseServiceTask;
import org.activiti.engine.delegate.DelegateExecution;
import org.springframework.stereotype.Service;

@Service
public class SavePayIn extends BaseServiceTask {
    @Override
    public void execute(DelegateExecution execution) {
        FundInRecord fundInRecord = (FundInRecord)execution.getVariable("fundInRecord");
        fundInRecord.setFlowInstanceId(execution.getProcessInstanceId());
    }
}
